package catanddog;

public class AnimalDemo {
    public static void main(String[] args) {
       Animal a=new Dog("hanser",40);
        System.out.println(a.getAge()+","+a.getName());
       a.eat();
       ((Dog) a).jump();



       a=new Dog("yuki",5);
        System.out.println(a.getAge()+","+a.getName());
        a.eat();
        ((Dog) a).jump();

    }
}
